import numpy as np
import time

arr1 = np.array([1, 2, 3, 4, 5])
arr2 = np.array([[1, 2, 3], [4, 5, 6]])
# 数组属性
arr = np.array([[1, 2, 3], [4, 5, 6]])
print("原始数组:\n", arr)
# 改变形状
reshaped = arr.reshape(3, 2)
print("重塑后:\n", reshaped)
print("一维度:\n",arr.ndim)
print("二维度:\n",reshaped.ndim)
print("一形状:\n",arr.shape)
print("二形状:\n",reshaped.shape)
